package com.bookmanger.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bookmanger.entity.Book;
import com.bookmanger.mapper.BookMapper;
import com.bookmanger.service.BookService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huangfuhao
 * @Date 2024/10/26
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {
    @Override
    public List<Book> getBookListByName(String name) {
        return list(new LambdaQueryWrapper<Book>()
                .like(Book::getBookName, name));
    }
}
